package com.dotc.patterndemo.create.factory.factoryMethod;

import com.dotc.patterndemo.entity.Fruit;
import com.dotc.patterndemo.entity.Fruitt.Apple;

/**
 * 工厂方法模式
 */
public class AppleFactory2 implements FruitFactory {
    @Override
    public Fruit getFruit() {
        return new Apple();
    }
}
